<!-- 关注公众号 -->
<template>
	<view class="followWebsite">
		<view class="tips">
			<text class="text1">用户下单或者绑定艺人扫描下方二维码进入公众号</text>
			<text class="text2">DD友伴小程序是艺人端，请检查是否绑定艺人</text>
		</view>
		<image class="image" :show-menu-by-longpress="true" src="https://open.weixin.qq.com/qr/code?username=gh_fd67baee7411" mode=""></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: 0, 
				title: '请前往公众号',
			};
		},
		onLoad(props) {
			// this.init(props?.type)
		},
		methods:{
			/**
			 * 初始化
			 */
			init(val){
				if(val === undefined || val === null || val === "") return
				this.type = Number(val)
				
				// 去公众号授权
				if(this.type === 701){
					this.title = '请前往公众号授权登录'
				}
				
				// 先关注公众号
				if(this.type === 702){
					this.title = '请先关注公众号'
				}
			}
		},
	}
</script>

<style lang="less" scoped>
	.followWebsite{
		#flex(column,-,center);
		#padding(24rpx);
		background: linear-gradient(180deg, rgba(238, 212, 215, 0.8) -3%, rgba(238, 212, 215, 0.2) 100%);
		min-height: 100vh;
		
		.tips{
			#font(32rpx,#333,600);
			#flex(column,-,-);
			margin: 100rpx 0 48rpx 0;
			gap: 24rpx;
			line-height: 48rpx;
			// text-indent: 72rpx;
		}
		.image{
			#box(400rpx);
		}
	}
</style>
